import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import index from '@/page/index'
import discovery from '@/page/discovery'
import order from '@/page/order'
import mine from '@/page/mine'
import shop from '@/page/shop'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      redirect:'/index'
    },
    {
      path: '/index',
      component: index
    },
    {
      path:'/discovery',
      component:discovery
    },
    {
      path:'/order',
      component:order
    },
    {
      path:'/mine',
      component:mine
    },
    {
      path:'/shop/:idx',
      component:shop
    }
  ]
})
